package org.colcon.web.model;

import java.util.HashMap;
import java.util.Map;

import org.colcon.web.model.framework.INews;

public class News extends Item implements INews
{
	public String getType(){return "news";}
	
	private static final long serialVersionUID = 3720891722497792269L;
	
	protected static final String
	
		// arguments
		TEXT = "text";

	public News()
	{
		this(new HashMap<String, String>());
	}
	
	public News(Map<String, String> args)
	{
		this(args.get(TEXT));
	}
	
	public News(String text)
	{
		super("colcon/news");
		
		setArg(TEXT, text);
	}
	
	public String getText()
	{
		return getArg(TEXT);
	}
	
	public void setText(String text)
	{
		setArg(TEXT, text);
	}
}
